package com.soap.service;

import com.soap.entities.Student;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.soap.Addressing;
import java.util.HashMap;
import java.util.List;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/4/16 21:46
 */
@WebService
@Addressing(required = true)
public interface StudentWs {
    @WebMethod
    Student getByName(@WebParam(name = "name") String name);

    @WebMethod
    List<Student> getAll();

    /**
     * get map by price
     *
     * @param price
     * @return
     */
    @WebMethod
    HashMap<String, Student> getMapByPrice(@WebParam(name = "price") double price);
}
